define(['requireUtil','babel'],function(requireUtil,babel){
 	var a = document.createElement('a');
	 /*
	  	map:map,
    	context:context
	  * */
	return {
		load:function(name, req, onLoad, config,requireBody){
			var map=requireBody.map;
			var context=requireBody.context; 
			var url=require.toUrl(name); 
			requireUtil.http(url).then(function(code){ 
				code=babel.transform(code,{
					presets:["es2015",'env'],
					plugins:["transform-async-to-generator", 'transform-modules-amd'
					]
				});   
				a.href = url;  
				eval(code.code
				+'\n//@ sourceURL='+a.href
				); 
				context.completeLoad(map.id);
			}); 
		}
	}
});